package com.ruoyi.eqmonitor.smdtv.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;

/**
 * 超图表--水质监测点
 */
@Data
public class Smdtv15 implements Serializable {
    /**
     * id
     */
    private Integer smid;

    /**
     * 
     */
    private Double smx;

    /**
     * 
     */
    private Double smy;

    /**
     * 
     */
    private Long smlibtileid;

    /**
     * 
     */
    private Integer smuserid;

    /**
     * 
     */
    private Double fid;

    /**
     * 
     */
    private Double oid;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private String folderpath;

    /**
     * 
     */
    private Double symbolid;

    /**
     * 
     */
    private Double altmode;

    /**
     * 
     */
    private Double base;

    /**
     * 
     */
    private String snippet;

    /**
     * 
     */
    private String popupinfo;

    /**
     * 
     */
    private Double haslabel;

    /**
     * 
     */
    private Double labelid;

    /**
     * 
     */
    private Double x;

    /**
     * 
     */
    private Double y;

    /**
     * 
     */
    private String shytype;

    /**
     * 
     */
    private String town;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Smdtv15 other = (Smdtv15) that;
        return (this.getSmid() == null ? other.getSmid() == null : this.getSmid().equals(other.getSmid()))
            && (this.getSmx() == null ? other.getSmx() == null : this.getSmx().equals(other.getSmx()))
            && (this.getSmy() == null ? other.getSmy() == null : this.getSmy().equals(other.getSmy()))
            && (this.getSmlibtileid() == null ? other.getSmlibtileid() == null : this.getSmlibtileid().equals(other.getSmlibtileid()))
            && (this.getSmuserid() == null ? other.getSmuserid() == null : this.getSmuserid().equals(other.getSmuserid()))
            && (this.getFid() == null ? other.getFid() == null : this.getFid().equals(other.getFid()))
            && (this.getOid() == null ? other.getOid() == null : this.getOid().equals(other.getOid()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getFolderpath() == null ? other.getFolderpath() == null : this.getFolderpath().equals(other.getFolderpath()))
            && (this.getSymbolid() == null ? other.getSymbolid() == null : this.getSymbolid().equals(other.getSymbolid()))
            && (this.getAltmode() == null ? other.getAltmode() == null : this.getAltmode().equals(other.getAltmode()))
            && (this.getBase() == null ? other.getBase() == null : this.getBase().equals(other.getBase()))
            && (this.getSnippet() == null ? other.getSnippet() == null : this.getSnippet().equals(other.getSnippet()))
            && (this.getPopupinfo() == null ? other.getPopupinfo() == null : this.getPopupinfo().equals(other.getPopupinfo()))
            && (this.getHaslabel() == null ? other.getHaslabel() == null : this.getHaslabel().equals(other.getHaslabel()))
            && (this.getLabelid() == null ? other.getLabelid() == null : this.getLabelid().equals(other.getLabelid()))
            && (this.getX() == null ? other.getX() == null : this.getX().equals(other.getX()))
            && (this.getY() == null ? other.getY() == null : this.getY().equals(other.getY()))
            && (this.getShytype() == null ? other.getShytype() == null : this.getShytype().equals(other.getShytype()))
            && (this.getTown() == null ? other.getTown() == null : this.getTown().equals(other.getTown()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSmid() == null) ? 0 : getSmid().hashCode());
        result = prime * result + ((getSmx() == null) ? 0 : getSmx().hashCode());
        result = prime * result + ((getSmy() == null) ? 0 : getSmy().hashCode());
        result = prime * result + ((getSmlibtileid() == null) ? 0 : getSmlibtileid().hashCode());
        result = prime * result + ((getSmuserid() == null) ? 0 : getSmuserid().hashCode());
        result = prime * result + ((getFid() == null) ? 0 : getFid().hashCode());
        result = prime * result + ((getOid() == null) ? 0 : getOid().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getFolderpath() == null) ? 0 : getFolderpath().hashCode());
        result = prime * result + ((getSymbolid() == null) ? 0 : getSymbolid().hashCode());
        result = prime * result + ((getAltmode() == null) ? 0 : getAltmode().hashCode());
        result = prime * result + ((getBase() == null) ? 0 : getBase().hashCode());
        result = prime * result + ((getSnippet() == null) ? 0 : getSnippet().hashCode());
        result = prime * result + ((getPopupinfo() == null) ? 0 : getPopupinfo().hashCode());
        result = prime * result + ((getHaslabel() == null) ? 0 : getHaslabel().hashCode());
        result = prime * result + ((getLabelid() == null) ? 0 : getLabelid().hashCode());
        result = prime * result + ((getX() == null) ? 0 : getX().hashCode());
        result = prime * result + ((getY() == null) ? 0 : getY().hashCode());
        result = prime * result + ((getShytype() == null) ? 0 : getShytype().hashCode());
        result = prime * result + ((getTown() == null) ? 0 : getTown().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", smid=").append(smid);
        sb.append(", smx=").append(smx);
        sb.append(", smy=").append(smy);
        sb.append(", smlibtileid=").append(smlibtileid);
        sb.append(", smuserid=").append(smuserid);
        sb.append(", fid=").append(fid);
        sb.append(", oid=").append(oid);
        sb.append(", name=").append(name);
        sb.append(", folderpath=").append(folderpath);
        sb.append(", symbolid=").append(symbolid);
        sb.append(", altmode=").append(altmode);
        sb.append(", base=").append(base);
        sb.append(", snippet=").append(snippet);
        sb.append(", popupinfo=").append(popupinfo);
        sb.append(", haslabel=").append(haslabel);
        sb.append(", labelid=").append(labelid);
        sb.append(", x=").append(x);
        sb.append(", y=").append(y);
        sb.append(", shytype=").append(shytype);
        sb.append(", town=").append(town);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}